package de.tum.in.eist.poll.client;

import java.io.Serializable;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@SuppressWarnings("serial")
@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class UsedAddress implements Serializable{
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
    private String encodedKey;
	
	private String ipAddress;
	private String lectureKey;
	
	public UsedAddress(String ipAddress, String lectureKey) {
		this.ipAddress = ipAddress;
		this.lectureKey = lectureKey;
	}
	
	public String getEncodedKey() {
		return encodedKey;
	}
	
	public String getIpAddress() {
		return ipAddress;
	}
	
	public String getLectureKey() {
		return lectureKey;
	}
}
